package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-08-09
 * Time: 4:08
 */
@Controller
public class TestController3 {

    @RequestMapping("/index1")
    public String index1() {
        return "redirect:/test.html";
    }
    @RequestMapping("/index2")
    public String index2() {
        return "forward:/test.html";
    }


}
